<template>
  <div class="homeBox">
    <div class="contentBox">
      <p>临江仙</p>
      <p>滚滚长江东逝水</p>
      <p>浪花淘尽英雄</p>
      <p>是非成败转头空</p>
      <p>青山依旧在</p>
      <p>几度夕阳红</p>
      <p>白发渔樵江渚上</p>
      <p>惯看秋月春风</p>
      <p>一壶浊酒喜相逢</p>
      <p>古今多少事</p>
      <p>都付笑谈中</p>
    </div>
  </div>
</template>

<script setup>

</script>

<style scoped>
  .homeBox{
    width: 100%;
    height: calc(100vh - 59px);
    background-image: url("../assets/index_bg.webp");
    background-size: cover;
    background-position: right bottom;
    position: relative;
  }
  .contentBox{
    writing-mode: vertical-lr;
    font-size: 18px;
    line-height: 1.8;
    font-family: cursive;
    letter-spacing: .5em;
    position: absolute;
    top: 15%;
    left: 15%;
  }
  .contentBox p:first-child{
    font-size: 20px;
    font-weight: bold;
  }
  .contentBox p:nth-child(4n + 2){
    text-indent: 1em;
  }
  .contentBox p:nth-child(4n + 3){
    text-indent: 2em;
  }
  .contentBox p:nth-child(4n){
    text-indent: 1em;
  }
  @media (max-width: 800px){
    .contentBox{
      writing-mode: horizontal-tb;
    }
    .contentBox p:nth-child(n){
      text-indent: 0;
    }
  }
</style>